package com.example.mcu_up.serial;

public class Command_Type {
	public static byte VERIFY_CHECKSUM=        0x31;
	public static byte GET_FLASH_SIZE=         (byte)0x32;
	public static byte GET_APPLICATION_STATUS= 0x33;
	public static byte ERASE_ROW=              0x34;
	public static byte SYNC_BOOTLOADER=        0x35;
	public static byte SET_ACTIVE_APPLICATION= 0x36;
	public static byte SEND_DATA=              0x37;
	public static byte ENTER_BOOTLOADER=       0x38;
	public static byte PROGRAM_ROW=            0x39;
	public static byte VERIFY_ROW=             0x3A;
	public static byte EXIT_BOOTLOADER=        0x3B;

	public static byte CYRET_SUCCESS=          0x00;
	public static byte BOOTLOADER_ERR_VERIFY=  0x02;
	public static byte BOOTLOADER_ERR_LENGTH=  0x03;
	public static byte BOOTLOADER_ERR_DATA=    0x04;
	public static byte BOOTLOADER_ERR_CMD=     0x05;
	public static byte BOOTLOADER_ERR_DEVICE=  0x06;
	public static byte BOOTLOADER_ERR_VERSION= 0x07;
	public static byte BOOTLOADER_ERR_CHECKSUM=0x08;
	public static byte BOOTLOADER_ERR_APPAY=   0x09;
	public static byte BOOTLOADER_ERR_ROW=     0x0A;
	public static byte BOOTLOADER_ERR_APP=     0x0C;
	public static byte BOOTLOADER_ERR_ACTIVE=  0x0D;
	public static byte BOOTLOADER_ERR_UNK=     0x0F;

	
	public static int start_line=0;

}
